﻿-if(ViewData.ContainsKey("popup"))
  %input{type="hidden",name="popup",value="true"}
-if(ViewData.ContainsKey("postback"))
  %input{type="hidden",name="postback",id="postback",value="true"}
-if(ViewData.ContainsKey("readonly"))
  %input#readonly{type="hidden",name="readonly",value="true"}
%input#returnaftersave{type="hidden",name="returnaftersave",value=""}
%input#closeaftersave{type="hidden",name="closeaftersave",value=ViewData.ContainsKey("closeaftersave")?"true":""}
%input#tab{type="hidden",name="tab",value=ViewData.ContainsKey("tab")?ViewData["tab"] : ""}
